// init_data.js
const { LocalQASystem } = require("./ask");

async function initData() {
  console.log("开始初始化数据...");

  const qaSystem = new LocalQASystem();

  const success = await qaSystem.initSystem();

  if (success) {
    console.log("数据初始化成功！");
  } else {
    console.log("数据初始化失败！");
  }

  process.exit(success ? 0 : 1);
}

initData();
